package com.service;

import com.common.paging.PagingData;
import com.dto.in.AddStudentDto;
import com.dto.in.AddTeacherDto;
import com.dto.in.StudentDto;
import com.entity.CertificationInfo;
import com.entity.ChangePhoneInfo;
import com.entity.StudentInfo;
import com.entity.Teacher;
import io.swagger.models.auth.In;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/10/16 0016.
 */
public interface StudentService {

    List<StudentInfo> findStudentList(StudentDto studentDto);

    StudentInfo findStudentWhereId(Integer userId, Integer studentId);

    List<StudentInfo> findStudentByUserId(Integer userId);

    int findCertification(Integer userId);

    int addStudent(AddStudentDto addStudentDto);

    List<StudentInfo> myRelease(Integer userId, Integer limit);

    int setMyRelease(Integer userId, Integer studentId);

    int updateStudent(AddStudentDto addStudentDto);

    int updateTeacher(AddTeacherDto addTeacherDto);

    int findLimit(Integer userId, Integer type);

    List<ChangePhoneInfo> findChangePhone(Integer userId, Integer type, Integer limit);

    int findIsPhoneTeacher(Integer stdUserId, Integer teaUserId);

    int addParentAndTeacher(Integer userId, Integer stdId, Integer teaUserId, Integer teaId);

    int addParentAndTeacher2(Integer userId, Integer stdId, Integer teaUserId, Integer teaId);

    int findIsHaveData(Integer stdUserId, Integer teaUserId);

    int agreeChangePhone(Integer applyPhoneId);

    int deleteChangePhone(Integer applyPhoneId);

    PagingData findCertificationList(Integer page, Integer length, String search, Integer type);

    int setCertification(Integer id, Integer type);

    Map findUserType();

    Map findStatistics();

    List<Teacher> findAll(Integer page, Integer length, String search);

    int findCount(String search);

    PagingData findUserTypeList(Integer page, Integer length, String search);

    List<StudentInfo> houduanMyRelease(Integer userId, Integer limit);

}
